package main

import (
	"gitee.com/baizhige/gin-common-handler/handler"
	"github.com/gin-gonic/gin"
	"time"
)

func Router(r gin.IRouter) {
	handler.Select(r)
	handler.GET("/timestamp", timestamp)
	handler.GET("/ping", ping)
}

func timestamp() int64 {
	return time.Now().UnixNano() / int64(time.Millisecond)
}
func ping() string {
	return "app1 pong"
}
